<?php

namespace addons\Contract\common\enums;
use common\enums\BaseEnum;

/**
 * 枚举
 *
 * Class GenderEnum
 * @package common\enums
 * @author YiiFrame <21931118@qq.com>
 */
class ContractEnum extends BaseEnum
{
    const one = 0;
    const two = 1;
    const three = 2;
    const four = 3;
    const five = 4;
    const six = 5;
    const seven = 6;
    const eight = 7;
    const nine = 8;
    const ten = 9;
    const eleven = 10;
    const twelve = 11;
    const thirteen = 12;
    const fourteen = 13;
    const others = 14;

    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::one => '劳动合同',
            self::two => '买卖合同',
            self::three => '租赁合同',
            self::four => '承揽合同',
            self::five => '运输合同',
            self::six => '技术合同',
            self::seven => '借款合同',
            self::eight => '仓储合同',
            self::nine => '委托合同',
            self::ten => '行纪合同',
            self::eleven => '居间合同',
            self::twelve => '赠与合同',
            self::thirteen => '融资租赁合同',
            self::fourteen => '建设工程合同',
            self::others => '其他合同',
        ];
    }

    public static function getValue($key): string
    {
        return static::getMap()[$key] ?? '';
    }
}